package cc.web.vaaking.common.core;

import cc.web.vaaking.entity.SysVacationRecord;

public abstract class EventHandler {
    SysVacationRecord sysVacationRecord;
    boolean app;

    public EventHandler(SysVacationRecord sysVacationRecord, boolean app) {
        this.sysVacationRecord = sysVacationRecord;
        this.app = app;
    }

    abstract void doBefore();

    abstract void process();

    abstract void doAfter();

    public void handler() {
        doBefore();
        process();
        doAfter();
    }
}
